# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-urwidgets
_pyname=urwidgets
pkgver=0.2.0
pkgrel=1
pkgdesc="A collection of widgets for urwid"
url="https://github.com/AnonymouX47/urwidgets"
arch="noarch"
license="MIT"
depends="py3-urwid"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/AnonymouX47/urwidgets/archive/v$pkgver/py3-urwidgets-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
4200ddd60568cd1ff6bbec7ab32a5d44ebd9e81ef1911d8c46157db2afd43b31c877c16ca8adfae917fbb0aff352a7d55d6e7b314d0e5c0cb2320df3b2d0c127  urwidgets-0.2.0.tar.gz
"
